﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Warhammer40K_Simulator
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();

            /*
            this.army1_view.OnUnitSelectionChanged += new view.browser.OnUnitSelectionChangedDelegate(this.army2_view.browser_OnUnitSelectionChanged);
            this.army1_view.OnUnitSelectionChanged += new view.browser.OnUnitSelectionChangedDelegate(this.browser_view.browser_OnUnitSelectionChanged);

            this.army2_view.OnUnitSelectionChanged += new view.browser.OnUnitSelectionChangedDelegate(this.army1_view.browser_OnUnitSelectionChanged);
            this.army2_view.OnUnitSelectionChanged += new view.browser.OnUnitSelectionChangedDelegate(this.browser_view.browser_OnUnitSelectionChanged);

            this.browser_view.OnUnitSelectionChanged += new view.browser.OnUnitSelectionChangedDelegate(this.army1_view.browser_OnUnitSelectionChanged);
            this.browser_view.OnUnitSelectionChanged += new view.browser.OnUnitSelectionChangedDelegate(this.army2_view.browser_OnUnitSelectionChanged);        
             * */
        }

        private void browser_view_OnUnitSelectionChanged(object sender, view.browser.OnUnitSelectionChangedEvent e)
        {
            /*
            this.unit_view.DataContext = e.Unit;
             */
        }

    }
}
